//
//  AgoraCPP.cpp
//  
//
//  Created by mac on 2023/12/13.
//

#include "AgoraCPP.hpp"
#include "./CPP/RtcTokenBuilder2.h"
const char * generateRTCToken(const char * appID, const char* appCert, const char* channelID,unsigned int uid, unsigned int expire) {
    std::string pAppID = appID;
    std::string pAppCert = appCert;
    std::string pChannelID = channelID;
    std::string result = agora::tools::RtcTokenBuilder2::BuildTokenWithUid(pAppID, pAppCert, pChannelID, uid, 1, expire);
    const char * res = result.c_str();
    return res;
}
